package org.ljf.dto;

/**
 * @创建人 lIUJF
 * @创建时间 2018/12/20
 * @描述:暴露秒杀地址DTO
 */
public class Exposer {
	private boolean exposed;
	//一种加密措施
	private String md5;
	private long secKillId;//开启时间
	private long now;//系统时间
	private long start;//开启时间
	private long end;//结束时间

	public long getSecKillId(){
		return secKillId;
	}

	public void setSecKillId(long secKillId){
		this.secKillId = secKillId;
	}

	public long getNow(){
		return now;
	}

	public void setNow(long now){
		this.now = now;
	}

	public boolean isExposed(){
		return exposed;
	}

	public Exposer(boolean exposed, long secKillId){
		this.exposed = exposed;
		this.secKillId = secKillId;
	}

	public Exposer(boolean exposed,  long secKillId,long now, long start, long end){
		this.exposed = exposed;
		this.secKillId = secKillId;
		this.now = now;
		this.start = start;
		this.end = end;
	}

	public Exposer(boolean exposed, String md5, long secKillId){
		this.exposed = exposed;
		this.md5 = md5;
		this.secKillId = secKillId;
	}

	public void setExposed(boolean exposed){
		this.exposed = exposed;
	}

	public String getMd5(){
		return md5;
	}

	public void setMd5(String md5){
		this.md5 = md5;
	}

	public long getStart(){
		return start;
	}

	public void setStart(long start){
		this.start = start;
	}

	public long getEnd(){
		return end;
	}

	public void setEnd(long end){
		this.end = end;
	}

	@Override
	public String toString(){
		return "Exposer{" + "exposed=" + exposed + ", md5='" + md5 + '\'' + ", secKillId=" + secKillId + ", now=" + now + ", start=" + start + ", end=" + end + '}';
	}
}
